package compile

const (
	_FLAG_STATIC    = 0x1
	_FLAG_CONST     = 0x2
	_FLAG_NATIVE    = 0x4
	_FLAG_PUBLIC    = 0x8
	_FLAG_PRIVATE   = 0x10
	_FLAG_PROTECTED = 0x20
	_FLAG_DEFAULT   = 0x40

	_FLAG_INTERFACE = 0x80
	_FLAG_ENUM      = 0x100

	_FLAG_OPOVERLOAD     = 0x200
	_FLAG_METHOD_DECLARE = 0x400

	_FLAG_ANONYMOUS = 0x800
)

func setFlag(i *uint, flag uint) {
	*i |= flag
}

func hasFlag(i uint, flag uint) bool {
	return i&flag != 0
}
